package Zoo.Handler;


import Zoo.View.UserView.UpdateUserView;
import Zoo.View.UserView.UserView;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class JtableDemoHandler  implements ActionListener {
    private UserView userView;

    public JtableDemoHandler( UserView userView){
        this.userView=userView;
    }

    /**
     * 用户的修改功能
     * @param e
     */
    @Override
    public void actionPerformed(ActionEvent e) {
        JButton jButton=(JButton) e.getSource();
        String text =jButton.getText();
        if("修改".equals(text)){
            //new UpdateZooparkView(jtableDemo);
            new UpdateUserView(userView);
        }
    }

}
